<style>
.userprofile{max-width: 400px;margin:auto;}
</style>
<form class="userprofile" method="post">
  <h3  >更新账户</h3>
  <div style="padding:10px;background:#f6f6f6;margin-bottom:10px;">
    您可以同时更新用户名和密码， 但务必请记住新的用户名和密码。 目前系统不支持邮件找回功能，如果忘记就真的无法登录了。
  </div>
   <div >
     <label for="username">用户名 <span class="alert" >  <?=$err['username'] ?></span></label>
     <div class="controls">
     	  <input type="text" id="username" placeholder="用户名" name="username" value=<?=$val['username'] ?>>
     </div>
  </div>
  <div >
     <label for="password">密码 <span class="alert" >  <?=$err['password'] ?></span></label>
     <div class="controls">
     	   <input type="password" id="passowrd" placeholder="密码" name="password"  >
     </div>
  </div>
   <div >
     <label for="repassword">确认密码 <span class="alert" >  <?=$err['repassword'] ?></span></label>
     <div class="controls">
     	   <input type="password" id="repassowrd" placeholder="密码" name="repassword"  >
     </div>
  </div>
  <div >
     <label for="email">电子邮箱 <span class="alert" ><?=$err['email'] ?></span></label>
     <div class="controls">
     	   <input type="text" id="email" placeholder="电子邮箱" name="email" value=<?=$val['email'] ?>>

     	   <input type="hidden" value="<?=$user['id']?>" name="id">
     </div>
  </div>
  <div >
     <div class="controls">
     	  <button class="btn btn-large btn-primary" type="submit">提交</button>
     </div>
  </div>
</form>
